<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/3/18
 * Time: 17:06
 */

namespace app\api\validate;
use think\Validate;

class MyProgramme extends Validate
{
    protected $rule = [
        'title'  => 'require',//|unique:User
        'image' => 'require',
        'course_type_id' => 'require',
        'course_type_purpose_id' => 'require',
        'people_number' => 'require',
        'days' => 'require',
        'file' => 'require',
        'product_detail' => 'require',
        'price' => 'require',
        'paid_view' => 'require',
        'paid_download' => 'require',
        'free_browsing' => 'require',
        'place_departure' => 'require',

    ];

    /**
     * 提示消息
     */
    protected $message = [
        'title.require' => '标题不能为空',
        'image.require' => '封面不能为空',
        'course_type_id.require' => '课程目的不能为空',
        'course_type_purpose_id.require' => '课程目的不能为空',
        'people_number.require' => '适合人数不能为空',
        'days.require' => '活动天数不能为空',
        'file.require' => '文件不能为空',
        'product_detail.require' => '意见不能为空',
        'price.require' => '价格不能为空',
        'paid_view.require' => '付费查看价格不能为空',
        'paid_download.require' => '付费下载价格不能为空',
        'free_browsing.require' => '免费浏览页数不能为空',
    ];
}